//
//  WZSignWebViewController.m
//  WZEfengAndEtong
//
//  Created by wanzhao on 2016/9/29.
//  Copyright © 2016年 wanzhao. All rights reserved.
//

#import "WZSignWebViewController.h"

@interface WZSignWebViewController ()
@property (weak, nonatomic) IBOutlet UIWebView *webView;

@end

@implementation WZSignWebViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}



#pragma mark - Navigation

 /*
 
 - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType
 {
 //    if (self.isLoad == YES) {
 //        return NO;
 //    } else {
 //        self.isLoad = YES;
 //        return YES;
 //    }
 return YES;
 }
 
 
 - (void)webViewDidStartLoad:(UIWebView *)webView {
 self.goBackItem.enabled = webView.canGoBack;
 self.goForwardItem.enabled = webView.canGoForward;
 }
 
 - (void)webViewDidFinishLoad:(UIWebView *)webView {
 [MBProgressHUD hideHUDForView:self.view];
 self.goBackItem.enabled = webView.canGoBack;
 self.goForwardItem.enabled = webView.canGoForward;
 }
 
 - (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error {
 [MBProgressHUD hideHUDForView:self.view];
 [MBProgressHUD showError:@"加载失败"];
 }
 
 
 - (void)viewWillAppear:(BOOL)animated
 {
 [super viewWillAppear:animated];
 if (!IsIOS7) {
 self.navigationController.navigationBar.tintColor = RGBCOLORWITH16COLOR(0xa694d4);
 } else {
 self.navigationController.navigationBar.barTintColor = RGBCOLORWITH16COLOR(0xa694d4);
 }
 }
 
 */

@end
